<script type="text/javascript" src="powertip/jquery.powertip.js"></script>
<link rel="stylesheet" type="text/css" href="powertip/css/jquery.powertip-blue.css" />
<script type="text/javascript">
		$(function() {
			// placement examples
			$('.hienthitip').powerTip({placement: 'se'});
		});
</script>
<?php
	$sql="select * from chuyenmuc where MaChuyenMuc=$MaCM";
	$dschuyenmuc = mysql_query($sql);
	$tenchuyenmuc=mysql_fetch_array($dschuyenmuc);
?>

<?php
//Lấy danh sách bài viết thuộc chuyên mục
	$sql_baiviet_chuyenmuc = "SELECT  *
							  FROM baiviet B, loaichuyenmuc C
							  WHERE B.MaLoaiChuyenMuc = C.MaLoaiChuyenMuc AND C.MaChuyenMuc = $MaCM and B.XuatBan = 1 order by NgayDang DESC LIMIT 5";
	$danhsach_baiviet_chuyenmuc = mysql_query($sql_baiviet_chuyenmuc);
	$i = 0;
	while($dong_baiviet_chuyenmuc = mysql_fetch_array($danhsach_baiviet_chuyenmuc))
	{
		if ($i==0)
		{
			$i++;
			continue;
		}
		echo "<h5>";
		echo "<img src='adm/images/li.png'>&nbsp";
		echo "<a class='hienthitip' data-powertip='{$dong_baiviet_chuyenmuc["TomTat"]}...' href='news.php?do=baivietchitiet&mbv={$dong_baiviet_chuyenmuc["MaBaiViet"]}'>{$dong_baiviet_chuyenmuc['TieuDe']}</a>";
		echo "</h5>";
		$i++;
	}
?>

